//
//  BaseView.h
//  ProjectExtension
//
//  Created by Apple on 2020/1/8.
//  Copyright © 2020 lidianchao. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN


//所有View类继承此类

@interface BaseView : UIView
+ (BaseView *)getInstance;
/**
*  创建imageView
*/
- (UIImageView *)createImageViewWithFrame:(CGRect)frame withImage:(UIImage *)image;
/**
*  创建列表
 @param class cell类
 @param identifier 唯一标识
  @param isPlain 列表样式
 @return 返回值  tableView
*/
- (UITableView *)createTabelViewAndSetDelegateClass:(id)class  andIdentifier:(NSString *)identifier isPlain:(BOOL)isPlain delegate:(id)delegate;
/// 创建列表无数据视图
/// @param frame frame
/// @param string 描述
- (UIView *)createNoMoreViewWithFrame:(CGRect)frame withText:(NSString *)string;
@end

NS_ASSUME_NONNULL_END
